package com.xh.car.mapper;

import com.xh.car.bean.CarImage;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarImageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CarImage record);

    int insertSelective(CarImage record);

    CarImage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CarImage record);

    int updateByPrimaryKey(CarImage record);

    int deleteByCarId(int carId);

    int batchInsert(List<CarImage> list);

    List<CarImage> getListByCarId(int carId);
}
